<template>
  <tab-bar>
    <tab-bar-item path="/home" activeColor="blue">
      <!--        替換插槽-->
      <img slot="item-icon" src="~assets/img/home.svg">
      <img slot="item-icon-active" src="~assets/img/home.png">
      <div slot="text">首页</div>
    </tab-bar-item>
    <tab-bar-item  path="/cart" activeColor="blue">
      <img slot="item-icon" src="~assets/img/cart.svg">
      <img slot="item-icon-active" src="~assets/img/cart.png">
      <div slot="text">购物车</div>
    </tab-bar-item>
    <tab-bar-item  path="/list"  activeColor="green">
      <img slot="item-icon" src="~assets/img/list.svg">
      <img slot="item-icon-active" src="~assets/img/list.png">
      <div slot="text">查找</div>
    </tab-bar-item>
    <tab-bar-item  path="/user"  activeColor="yellow">
      <img slot="item-icon" src="~assets/img/user.svg">
      <img slot="item-icon-active" src="~assets/img/user.png">
      <div slot="text">用户</div>
    </tab-bar-item>
  </tab-bar>
</template>

<script>
import TabBarItem from "components/content/TabBarItem";
import TabBar from "components/content/TabBar";
export default {
  name: "MainTabBar",
  components: {
    TabBar,
    TabBarItem
  }
}
</script>

<style scoped>

</style>
